package com.king.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;
import com.king.springcloud.entities.CommonResult;
import com.king.springcloud.entities.PaymentEntity;

/**
 * 用户自定义 BlockHandler
 * @author king
 * @date 2020/10/19 19:41
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException1(BlockException e){
        return new CommonResult(444, "按客户自定义, global handlerException---------1");
    }
    public static CommonResult handlerException2(BlockException e){
        return new CommonResult(444, "按客户自定义, global handlerException---------2");
    }
}
